package com.example.teesystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 
 * @TableName t_exam
 */
@TableName(value ="t_exam")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Exam implements Serializable{
    /**
     * key自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 试卷题目id
     */
    @TableField(value = "issue_id")
    private Integer issueId;

    /**
     * 试卷id
     */
    @TableField(value = "paper_id")
    private Integer paperId;

    /**
     * 学生id
     */
    @TableField(value = "student_id")
    private Integer studentId;

    /**
     * 答案
     */
    @TableField(value = "answer")
    private String answer;

    /**
     * 本题目得分
     */
    @TableField(value = "score")
    private Integer score;

    /**
     * 答题评价
     */
    @TableField(value = "message")
    private String message;

    /**
     * 该题是否评分
     */
    @TableField(value = "is_mark")
    private Integer isMark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}